<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isErrorPage="true"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>错误警告</title>
<style type="text/css">
h1{ color:red;}
</style>
</head>
<body>
<h1>出错啦</h1>
<p><%
String msg=exception.getMessage();
out.print(msg);
%></p>
</body>
</html>